package com.heima.model.admin.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 王梓聪
 */
@Data
@TableName("ad_user")
@NoArgsConstructor
@AllArgsConstructor
public class AdUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String password;

    private String salt;

    private String nickname;

    private String image; // 假设这里image字段是String类型，用于存储图片URL或路径

    private String phone;

    private Boolean status;

    private String email;

    private Date loginTime; // 假设这里使用long类型来存储时间戳

    private Date createdTime; // 同样使用long类型来存储时间戳
}
